import request from '@/utils/request'

// 查询限时卡券列表
export function listLimitCouponConfig(query) {
  return request({
    url: '/limitCouponConfig/limitCouponConfig/list',
    method: 'get',
    params: query
  })
}

// 查询限时卡券详细
export function getLimitCouponConfig(id) {
  return request({
    url: '/limitCouponConfig/limitCouponConfig/' + id,
    method: 'get'
  })
}

// 新增限时卡券
export function addLimitCouponConfig(data) {
  return request({
    url: '/limitCouponConfig/limitCouponConfig',
    method: 'post',
    data: data
  })
}

// 修改限时卡券
export function updateLimitCouponConfig(data) {
  return request({
    url: '/limitCouponConfig/limitCouponConfig',
    method: 'put',
    data: data
  })
}

// 删除限时卡券
export function delLimitCouponConfig(id) {
  return request({
    url: '/limitCouponConfig/limitCouponConfig/' + id,
    method: 'delete'
  })
}
